package com.sneakxy.cloudbase.platform.bean;

import org.springframework.data.annotation.Id;

import com.sneakxy.mybatis.commons.annotations.Column;
import com.sneakxy.mybatis.commons.annotations.Table;
import com.sneakxy.mybatis.commons.orm.generation.GeneratedValue;
import com.sneakxy.mybatis.commons.orm.generation.GenerationType;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 菜单信息
 * @author 潜行的虚影
 * @see
 */
@Data
@Table("t_mb4j_menu")
@EqualsAndHashCode(callSuper = false)
public class Menu extends BaseEntity<String> implements TimeEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7333040760378776378L;

	/**
	 * 菜单ID
	 */
	@Id
	@Column("id")
	@GeneratedValue(strategy = GenerationType.UUID)
	private String id;

	/**
	 * 菜单图标
	 */
	@Column("icon")
	private String icon;

	/**
	 * 菜单路由
	 */
	@Column("router")
	private String router;

	/**
	 * 菜单名称
	 */
	@Column("name")
	private String name;

	/**
	 * 权限标志
	 */
	@Column("permission")
	private String permission;

	/**
	 * 菜单排序
	 */
	@Column("sort")
	private Integer sort;

	/**
	 * 国际化
	 */
	@Column("i18n")
	private String i18n;

	/**
	 * 菜单类型
	 */
	@Column("type")
	private String type;

	/**
	 * 是否开启
	 */
	@Column("enable")
	private Boolean enable;

	/**
	 * 响应类型
	 */
	@Column("menu_type")
	private String menuType;

	/**
	 * 创建时间
	 */
	@Column("createtime")
	private String createtime;

	/**
	 * 更新时间
	 */
	@Column("updatetime")
	private String updatetime;

}
